package cn.edu.java.stream.A创建流;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

public class ListDemo {
    public static void main(String[] args) {
        List<String> list = Arrays.asList("apple", "banana", "orange");
        Stream<String> stream = list.stream();

        stream.forEach(System.out::println);
    }
}
